package com.sdkj.dspservice.modules.demand.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.sdkj.dspservice.common.base.service.CrudService;
import com.sdkj.dspservice.modules.demand.entity.DemandDetails;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 需求详情service接口
 *
 * @author tm
 */
public interface DemandDetailsService extends CrudService<DemandDetails> {

    /**
     * 获取指定需求，最后流程段
     * @param demandId
     * @return
     */
    DemandDetails getLastByDemandId(String demandId);
    List<DemandDetails> listLink(@Param(Constants.WRAPPER) Wrapper<DemandDetails> wrapper);
}
